﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
  	<style type="text/css">
			body,html,#map {
				margin: 0px;
				width: 100%;
				height: 100%;
			}
		</style>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>实时监控</title>
 <script type="text/javascript" src="js/key.js"></script>
		<script type="text/javascript">
		//<![CDATA[
		           loadGoogleJS();
		//window.onload = function(){loadGoogleJS()};
		//]]>
		</script>    
    
	<script type="text/javascript" src="js/public.js"></script>
    <script type="text/javascript" src="js/myjsframe.js"></script>
    <script src="js/maps.js"  type="text/javascript"></script>
    <script src="js/mm.js"  type="text/javascript"></script>
    <script type="text/javascript" src="js/gmaps/popupmarker.js"></script>
    <script type="text/javascript">
    //<![CDATA[
	function tiyan(){}
	var len = 0;
    function load() {
      if (GBrowserIsCompatible()) {
          //取URL中的参数q---手机号
          function getParameter(param)
          {
             var query = window.location.search;
             var iLen = param.length;
             var iStart = query.indexOf(param);

             if (iStart == -1)
                return "";
             iStart += iLen + 1;
             var iEnd = query.indexOf("&", iStart);
             if (iEnd == -1)
            　 return query.substring(iStart);
             return query.substring(iStart, iEnd);
          }
          
    	  var userID=getParameter("q");
          setUserID(userID);
       	  getpoint();   
       	  //var count = 0; 	  
       	  intervalID = window.setInterval( function() {
       	  		getpoint();
       	  		//count ++;
       	  		if(runCount == 100){
       	  		//alert(runCount)
       	  			//if(confirm("跟踪的时间较长，继续跟踪会引起系统运行变慢，确认退出后重新跟踪？")){
       	  			//map.clearOverlays(); 
       	  				GUnload();
       	  			//window.clearInterval(intervalID);
       	  			//load();
       	  		runCount = 0;
       	  		//alert(runCount);
           	  			//alert("dd");
       	  			//}
       	  		}
       	  	}, 10000);
        }
    }
    //]]>
    </script>
  </head>
  <body onload="load()" onunload="GUnload()">
			<div id="map"></div>
  </body>
</html>
